home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / window / tegl / intropak / autorot.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-06  |  527 b   |  36 lines

  1.  
  2.   /* -- Program to illustrate auto rotation of frames by using setautorotate.  */
  3.   /* -- Whichever frame is clicked on will move to the top.  */
  4.  
  5. #include "teglsys.h"
  6.  
  7. imagestkptr  fs;
  8.  
  9.  
  10.  
  11. void main(void)
  12. {
  13.  
  14.  
  15.  
  16.    easytegl();
  17.    easyout();
  18.  
  19.      /* -- create the first frame  */
  20.  
  21.    pushimage(1,1,100,100);
  22.    shadowbox(1,1,100,100);
  23.  
  24.      /* -- then create the second frame  */
  25.  
  26.    pushimage(50,50,150,150);
  27.    shadowbox(50,50,150,150);
  28.  
  29.    setautorotate(TRUE);
  30.  
  31.    teglsupervisor(); 
  32. }
  33.  
  34.  
  35.  
  36.